<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <hello-world :parentarr='parentarr' :parentobj='parentobj'></hello-world>
    </div>
    <script src="../vue.js"></script>
    <script>
        Vue.component('hello-world', {
            props: ['parentarr', 'parentobj'],
            template: `
            <div>
                <ul>
                    <li v-for='(item,index) in parentarr' :key='index'>{{item}}</li>
                </ul>
                <span>{{parentobj.name}}</span>
                <span>{{parentobj.age}}</span>
            </div>
            `
        })
        var vm = new Vue({
            el: '#app',
            data: {
                parentarr: ['orange', 'banana', 'lemon'],
                parentobj: {
                    name: 'Tom',
                    age: 18
                }
            }
        })
    </script>
</body>

</html>